package com.gov.dna.common.util;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 字段属性用于生成
 * @author (作者) Dong Jie 154046519@qq.com
 * @version V1.0
 * @date 2019/1/4 13:25
 * @since (该版本支持的JDK版本) 1.8
 */
@Data
@ApiModel(value = "字段属性Entity:Field")
public class Field {

    @ApiModelProperty(value="java字段名")
    private String javaFieldName;

    @ApiModelProperty(value="数据库字段名")
    private String dbFieldName;

    @ApiModelProperty(value="java字段类型")
    private String javaFieldType;

    @ApiModelProperty(value="数据库字段类型")
    private String dbFieldType;

    @ApiModelProperty(value="数据库字段长度")
    private Integer length;

    @ApiModelProperty(value="是否主键")
    private boolean key;

    @ApiModelProperty(value="备注")
    private String description;
}
